package pc;

import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerTest {

	public static void main(String[] args) throws Exception{
		ServerSocket server = new ServerSocket(7777);
		while(true){
			
			Socket sk = server.accept();
			OutputStream out = sk.getOutputStream();
			out.write("hello server\n".getBytes());
			out.close();
			sk.close();
		}
//		server.close();
	}

}
